package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 报警标记处理表 实体类
 * 表名：ra_alarm_label
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_alarm_label")
public class RaAlarmLabel implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 原因主键
     */
    @Column(name = "reason_id", nullable = false)
    private Long reasonId;
    
    /**
     * 报警记录编码
     */
    @Column(name = "alarm_record_code", length = 32)
    private String alarmRecordCode;
    
    /**
     * 报警组合主键
     */
    @Column(name = "alarm_group_id")
    private Long alarmGroupId;
    
    /**
     * 状态（0、未标记 1、已标记）
     * 默认值: 0
     */
    @Column(name = "status")
    private Byte status;
    
    /**
     * 是否删除（0、否1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 64)
    private String createBy;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新者
     */
    @Column(name = "update_by", length = 64)
    private String updateBy;
    
    @Override
    public String toString() {
        return "RaAlarmLabel{" +
            "id=" + id +
            ", reasonId=" + reasonId +
            ", alarmRecordCode=" + alarmRecordCode +
            ", alarmGroupId=" + alarmGroupId +
            ", status=" + status +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 